package main

import (
	"os"
	"log"
	"GoRProxy/Client"
	"fmt"
	"sync"
)

func main() {

	if len(os.Args) < 3 {
		log.Println("Usage: client <remoteHost:port>  <servicePort:targetHost:port> [servicePort:targetHost:port] ")
		return
	}
	remoteAddr := os.Args[1]
	targetAddresses := os.Args[2:]
	fmt.Println(remoteAddr, targetAddresses)
	wg := sync.WaitGroup{}
	wg.Add(1)
	Client.AClient(remoteAddr, targetAddresses)
	wg.Wait()
}
